define(['swiper','jquery','cm'],function(){
    $('footer').load('../html/footer.html')
    // window.onload = function () {
        var swiper = new Swiper('.swiper-container', {
            autoplay: 3000,
            speed: 1000,
            autoplayDisableOnInteraction: false,
            loop: true,
            centeredSlides: true,
            slidesPerView: 2,
            pagination: '.swiper-pagination',
            paginationClickable: true,
            prevButton: '.swiper-button-prev',
            nextButton: '.swiper-button-next',
            onInit: function (swiper) {
                swiper.slides[2].className = "swiper-slide swiper-slide-active";//第一次打开不要动画
            },
            breakpoints: {
                668: {
                    slidesPerView: 1,
                }
            }
        });
    // }
    if(getCookie('用户')){
        let cookie=getCookie('用户')
        $('.login').html(`<a class='ture' href="../html/getPrice.html">${cookie}<img src="../imgaes/index/钻石.png" alt=""></a>`)
    }
})